package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.DiscussMapper;
import com.hcb.micro.dto.Discuss;
import com.hcb.micro.service.IDiscussService;

@Service("DiscussService")
public class DiscussServiceImpl implements IDiscussService {

	@Autowired
	DiscussMapper discussMapper;
	
	@Override
	public int insertSelective(Discuss record) {
		return discussMapper.insertSelective(record);
	}

	@Override
	public int updateByPrimaryKeySelective(Discuss record) {
		return discussMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Discuss selectByPrimaryKey(Integer id) {
		return discussMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public List<Discuss> selectByPara(Map<String, Object> para) {
		return discussMapper.selectByPara(para);
	}

}
